package com.xb.cloud.gateway.result;

import java.io.Serializable;

/**
 * 
 * @ClassName:  ResultCode   
 * @Description:TODO
 * @author: 鲜备科技
 * @date:   2017年12月15日 下午6:33:57   
 *     
 * @Copyright: 2017 www.xianbeitech.com Inc. All rights reserved. 
 *
 */
public class ResultCode implements Serializable {
	private static final long serialVersionUID = -2111303007554530274L;
	/*
	 * 返回个调用方的状态码，成功调用为“0”，调用方可以根据状态码处理自己的业务逻辑
	 */
	protected String code;
	/*
	 * 返回给调用方的message
	 */
	protected String message;
	/*
	 * 返回给调用方的扩展信息
	 */
	protected String ext;
	/*
	 * 返回调用方的业务数据
	 */
	protected Object data;
	/*
	 * 强制干预字段
	 */
	private String action;
	private String tip;

	public void setRtn_code(String rtn_code) {
		this.code = rtn_code;
	}

	public void setRtn_msg(String rtn_msg) {
		this.message = rtn_msg;
	}

	public void setRtn_ext(String rtn_ext) {
		this.ext = rtn_ext;
	}

	public Object getData() {
		return this.data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getTip() {
		return tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}
	/**
	 * 
	 * <p>Title: toString</p>   
	 * <p>Description: </p>   
	 * @return   
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ResultCode [code=" + code + ", message=" + message + ", ext=" + ext + ", data=" + data + ", action="
				+ action + ", tip=" + tip + "]";
	}

}
